package com.itheima.demo03;

public class Test {
    public static void main(String[] args) {
        // 厨师
        Cook c = new Cook("c001", "张三", 8000);
        c.word();
        c.eat();

        System.out.println(c.getId() + "," + c.getName() + ", " + c.getSalary());

        //经理
        Manager m = new Manager();
        m.setId("m002");
        m.setName("李四");
        m.setSalary(12000);
        m.setBonus(1000);

        m.eat();
        m.word();

        System.out.println(m.getId() + "," + m.getName() + ", " + m.getSalary() + ", " + m.getBonus());
    }
}
